+--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0f 43 50 6c 75 67 69 | 6e 41 72 67 73 2e 63 70 |..CPlugi|nArgs.cp| |00000010| 70 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |p.......|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......| |00000050| 00 00 00 00 00 19 ae 00 | 00 01 9a ae 64 b5 9b ae |........|....d...| |00000060| 64 b5 9b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |d.......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 b9 7f 00 00 |........|........| |00000080| 2f 2f 20 43 50 6c 75 67 | 69 6e 41 72 67 73 2e 63 |// CPlug|inArgs.c| |00000090| 70 70 0a 0a 23 69 6e 63 | 6c 75 64 65 20 22 43 50 |pp..#inc|lude "CP| |000000a0| 6c 75 67 69 6e 41 72 67 | 73 2e 68 22 0a 0a 0a 23 |luginArg|s.h"...#| |000000b0| 69 6e 63 6c 75 64 65 20 | 22 6e 70 61 70 69 2e 68 |include |"npapi.h| |000000c0| 22 0a 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 74 72 |"..#incl|ude <str| |000000d0| 69 6e 67 2e 68 3e 0a 2f | 2f 23 69 6e 63 6c 75 64 |ing.h>./|/#includ| |000000e0| 65 20 3c 73 74 64 6c 69 | 62 2e 68 3e 0a 0a 76 6f |e <stdli|b.h>..vo| |000000f0| 69 64 20 4e 6f 72 6d 61 | 6c 69 7a 65 53 74 72 69 |id Norma|lizeStri| |00000100| 6e 67 28 20 63 68 61 72 | 2a 20 74 68 65 53 74 72 |ng( char|* theStr| |00000110| 69 6e 67 20 29 3b 0a 63 | 6f 6e 73 74 20 63 68 61 |ing );.c|onst cha| |00000120| 72 2a 20 67 54 72 75 65 | 53 74 72 69 6e 67 20 3d |r* gTrue|String =| |00000130| 20 22 74 72 75 65 22 3b | 0a 0a 65 78 74 65 72 6e | "true";|..extern| |00000140| 20 76 6f 69 64 2a 20 4e | 50 4e 5f 4d 65 6d 41 6c | void* N|PN_MemAl| |00000150| 6c 6f 63 28 75 69 6e 74 | 33 32 20 73 69 7a 65 29 |loc(uint|32 size)| |00000160| 3b 0a 65 78 74 65 72 6e | 20 76 6f 69 64 20 4e 50 |;.extern| void NP| |00000170| 4e 5f 4d 65 6d 46 72 65 | 65 28 76 6f 69 64 2a 20 |N_MemFre|e(void* | |00000180| 70 74 72 29 3b 0a 0a 2f | 2f 3d 3d 3d 3d 3d 3d 3d |ptr);../|/=======| |00000190| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000001a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000001b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000001c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0a |========|=======.| |000001d0| 2f 2f 0a 2f 2f 09 09 43 | 41 72 67 75 6d 65 6e 74 |//.//..C|Argument| |000001e0| 4e 6f 64 65 3a 3a 43 41 | 72 67 75 6d 65 6e 74 4e |Node::CA|rgumentN| |000001f0| 6f 64 65 0a 2f 2f 0a 2f | 2f 3d 3d 3d 3d 3d 3d 3d |ode.//./|/=======| |00000200| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000210| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000220| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000230| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0a |========|=======.| |00000240| 0a 43 41 72 67 75 6d 65 | 6e 74 4e 6f 64 65 3a 3a |.CArgume|ntNode::| |00000250| 43 41 72 67 75 6d 65 6e | 74 4e 6f 64 65 28 20 63 |CArgumen|tNode( c| |00000260| 68 61 72 2a 20 61 64 6f | 70 74 41 72 67 75 6d 65 |har* ado|ptArgume| |00000270| 6e 74 4e 61 6d 65 2c 20 | 63 68 61 72 2a 20 61 64 |ntName, |char* ad| |00000280| 6f 70 74 41 72 67 75 6d | 65 6e 74 56 61 6c 75 65 |optArgum|entValue| |00000290| 20 29 0a 3a 09 66 41 72 | 67 75 6d 65 6e 74 4e 61 | ).:.fAr|gumentNa| |000002a0| 6d 65 28 20 61 64 6f 70 | 74 41 72 67 75 6d 65 6e |me( adop|tArgumen| |000002b0| 74 4e 61 6d 65 20 29 2c | 0a 09 66 41 72 67 75 6d |tName ),|..fArgum| |000002c0| 65 6e 74 56 61 6c 75 65 | 28 20 61 64 6f 70 74 41 |entValue|( adoptA| |000002d0| 72 67 75 6d 65 6e 74 56 | 61 6c 75 65 20 29 2c 0a |rgumentV|alue ),.| |000002e0| 09 66 4c 65 73 73 65 72 | 43 68 69 6c 64 28 20 30 |.fLesser|Child( 0| |000002f0| 20 29 2c 0a 09 66 47 72 | 65 61 74 65 72 43 68 69 | ),..fGr|eaterChi| |00000300| 6c 64 28 20 30 20 29 0a | 7b 0a 7d 0a 0a 2f 2f 3d |ld( 0 ).|{.}..//=| |00000310| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000320| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000330| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000340| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000350| 3d 3d 3d 3d 3d 0a 2f 2f | 0a 2f 2f 09 09 43 41 72 |=====.//|.//..CAr| |00000360| 67 75 6d 65 6e 74 4e 6f | 64 65 3a 3a 7e 43 41 72 |gumentNo|de::~CAr| |00000370| 67 75 6d 65 6e 74 4e 6f | 64 65 0a 2f 2f 0a 2f 2f |gumentNo|de.//.//| |00000380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000390| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000003a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000003b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000003c0| 3d 3d 3d 3d 3d 3d 0a 0a | 43 41 72 67 75 6d 65 6e |======..|CArgumen| |000003d0| 74 4e 6f 64 65 3a 3a 7e | 43 41 72 67 75 6d 65 6e |tNode::~|CArgumen| |000003e0| 74 4e 6f 64 65 28 29 0a | 7b 0a 09 64 65 6c 65 74 |tNode().|{..delet| |000003f0| 65 20 66 4c 65 73 73 65 | 72 43 68 69 6c 64 3b 0a |e fLesse|rChild;.| |00000400| 09 64 65 6c 65 74 65 20 | 66 47 72 65 61 74 65 72 |.delete |fGreater| |00000410| 43 68 69 6c 64 3b 0a 09 | 4e 50 4e 5f 4d 65 6d 46 |Child;..|NPN_MemF| |00000420| 72 65 65 28 20 66 41 72 | 67 75 6d 65 6e 74 4e 61 |ree( fAr|gumentNa| |00000430| 6d 65 20 29 3b 0a 09 4e | 50 4e 5f 4d 65 6d 46 72 |me );..N|PN_MemFr| |00000440| 65 65 28 20 66 41 72 67 | 75 6d 65 6e 74 56 61 6c |ee( fArg|umentVal| |00000450| 75 65 20 29 3b 09 0a 7d | 0a 0a 2f 2f 3d 3d 3d 3d |ue );..}|..//====| |00000460| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000470| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000480| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000490| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000004a0| 3d 3d 0a 2f 2f 0a 2f 2f | 09 09 43 41 72 67 75 6d |==.//.//|..CArgum| |000004b0| 65 6e 74 4e 6f 64 65 3a | 3a 46 69 6e 64 41 72 67 |entNode:|:FindArg| |000004c0| 75 6d 65 6e 74 42 79 4e | 61 6d 65 0a 2f 2f 0a 2f |umentByN|ame.//./| |000004d0| 2f 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |/=======|========| |000004e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000004f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000500| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000510| 3d 3d 3d 3d 3d 3d 3d 0a | 0a 63 6f 6e 73 74 20 43 |=======.|.const C| |00000520| 41 72 67 75 6d 65 6e 74 | 4e 6f 64 65 2a 0a 43 41 |Argument|Node*.CA| |00000530| 72 67 75 6d 65 6e 74 4e | 6f 64 65 3a 3a 46 69 6e |rgumentN|ode::Fin| |00000540| 64 41 72 67 75 6d 65 6e | 74 42 79 4e 61 6d 65 28 |dArgumen|tByName(| |00000550| 20 63 6f 6e 73 74 20 63 | 68 61 72 2a 20 6e 6f 72 | const c|har* nor| |00000560| 6d 61 6c 41 72 67 4e 61 | 6d 65 20 29 20 63 6f 6e |malArgNa|me ) con| |00000570| 73 74 0a 7b 0a 09 43 41 | 72 67 75 6d 65 6e 74 4e |st.{..CA|rgumentN| |00000580| 6f 64 65 2a 20 72 65 73 | 75 6c 74 4e 6f 64 65 20 |ode* res|ultNode | |00000590| 3d 20 30 3b 0a 09 0a 09 | 69 6e 74 20 72 65 73 75 |= 0;....|int resu| |000005a0| 6c 74 20 3d 20 73 74 72 | 63 6d 70 28 20 6e 6f 72 |lt = str|cmp( nor| |000005b0| 6d 61 6c 41 72 67 4e 61 | 6d 65 2c 20 66 41 72 67 |malArgNa|me, fArg| |000005c0| 75 6d 65 6e 74 4e 61 6d | 65 20 29 3b 0a 09 69 66 |umentNam|e );..if| |000005d0| 20 28 20 72 65 73 75 6c | 74 20 3d 3d 20 30 20 29 | ( resul|t == 0 )| |000005e0| 20 7b 0a 09 09 72 65 74 | 75 72 6e 20 74 68 69 73 | {...ret|urn this| |000005f0| 3b 0a 09 7d 0a 09 65 6c | 73 65 20 69 66 28 20 72 |;..}..el|se if( r| |00000600| 65 73 75 6c 74 20 3c 20 | 30 20 29 20 7b 0a 09 09 |esult < |0 ) {...| |00000610| 69 66 20 28 20 66 4c 65 | 73 73 65 72 43 68 69 6c |if ( fLe|sserChil| |00000620| 64 20 29 0a 09 09 09 72 | 65 74 75 72 6e 20 66 4c |d )....r|eturn fL| |00000630| 65 73 73 65 72 43 68 69 | 6c 64 2d 3e 46 69 6e 64 |esserChi|ld->Find| |00000640| 41 72 67 75 6d 65 6e 74 | 42 79 4e 61 6d 65 28 20 |Argument|ByName( | |00000650| 6e 6f 72 6d 61 6c 41 72 | 67 4e 61 6d 65 20 29 3b |normalAr|gName );| |00000660| 0a 09 7d 0a 09 65 6c 73 | 65 20 69 66 28 20 72 65 |..}..els|e if( re| |00000670| 73 75 6c 74 20 3e 20 30 | 20 29 20 7b 0a 09 09 69 |sult > 0| ) {...i| |00000680| 66 28 20 66 47 72 65 61 | 74 65 72 43 68 69 6c 64 |f( fGrea|terChild| |00000690| 20 29 0a 09 09 09 72 65 | 74 75 72 6e 20 66 47 72 | )....re|turn fGr| |000006a0| 65 61 74 65 72 43 68 69 | 6c 64 2d 3e 46 69 6e 64 |eaterChi|ld->Find| |000006b0| 41 72 67 75 6d 65 6e 74 | 42 79 4e 61 6d 65 28 20 |Argument|ByName( | |000006c0| 6e 6f 72 6d 61 6c 41 72 | 67 4e 61 6d 65 20 29 3b |normalAr|gName );| |000006d0| 0a 09 7d 0a 09 72 65 74 | 75 72 6e 20 72 65 73 75 |..}..ret|urn resu| |000006e0| 6c 74 4e 6f 64 65 3b 0a | 7d 0a 0a 2f 2f 3d 3d 3d |ltNode;.|}..//===| |000006f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000700| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000710| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000720| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000730| 3d 3d 3d 0a 2f 2f 0a 2f | 2f 09 09 43 41 72 67 75 |===.//./|/..CArgu| |00000740| 6d 65 6e 74 4e 6f 64 65 | 3a 3a 47 65 74 41 72 67 |mentNode|::GetArg| |00000750| 75 6d 65 6e 74 4e 61 6d | 65 0a 2f 2f 0a 2f 2f 3d |umentNam|e.//.//=| |00000760| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000770| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000780| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000790| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000007a0| 3d 3d 3d 3d 3d 0a 0a 63 | 6f 6e 73 74 20 63 68 61 |=====..c|onst cha| |000007b0| 72 2a 0a 43 41 72 67 75 | 6d 65 6e 74 4e 6f 64 65 |r*.CArgu|mentNode| |000007c0| 3a 3a 47 65 74 41 72 67 | 75 6d 65 6e 74 4e 61 6d |::GetArg|umentNam| |000007d0| 65 28 29 20 63 6f 6e 73 | 74 0a 7b 0a 09 72 65 74 |e() cons|t.{..ret| |000007e0| 75 72 6e 20 66 41 72 67 | 75 6d 65 6e 74 4e 61 6d |urn fArg|umentNam| |000007f0| 65 3b 0a 7d 0a 0a 2f 2f | 3d 3d 3d 3d 3d 3d 3d 3d |e;.}..//|========| |00000800| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000810| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000820| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000830| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0a 2f |========|======./| |00000840| 2f 0a 2f 2f 09 09 43 41 | 72 67 75 6d 65 6e 74 4e |/.//..CA|rgumentN| |00000850| 6f 64 65 3a 3a 47 65 74 | 41 72 67 75 6d 65 6e 74 |ode::Get|Argument| |00000860| 56 61 6c 75 65 0a 2f 2f | 0a 2f 2f 3d 3d 3d 3d 3d |Value.//|.//=====| |00000870| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000880| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000890| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000008a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000008b0| 3d 0a 0a 63 6f 6e 73 74 | 20 63 68 61 72 2a 0a 43 |=..const| char*.C| |000008c0| 41 72 67 75 6d 65 6e 74 | 4e 6f 64 65 3a 3a 47 65 |Argument|Node::Ge| |000008d0| 74 41 72 67 75 6d 65 6e | 74 56 61 6c 75 65 28 29 |tArgumen|tValue()| |000008e0| 20 63 6f 6e 73 74 0a 7b | 0a 09 72 65 74 75 72 6e | const.{|..return| |000008f0| 20 66 41 72 67 75 6d 65 | 6e 74 56 61 6c 75 65 3b | fArgume|ntValue;| |00000900| 0a 7d 0a 0a 2f 2f 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.}..//==|========| |00000910| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000920| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000930| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000940| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 2f 2f 0a |========|====.//.| |00000950| 2f 2f 09 09 43 41 72 67 | 75 6d 65 6e 74 4e 6f 64 |//..CArg|umentNod| |00000960| 65 3a 3a 41 64 6f 70 74 | 43 68 69 6c 64 41 72 67 |e::Adopt|ChildArg| |00000970| 75 6d 65 6e 74 0a 2f 2f | 0a 2f 2f 3d 3d 3d 3d 3d |ument.//|.//=====| |00000980| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000990| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000009a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000009b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000009c0| 3d 0a 0a 76 6f 69 64 0a | 43 41 72 67 75 6d 65 6e |=..void.|CArgumen| |000009d0| 74 4e 6f 64 65 3a 3a 41 | 64 6f 70 74 43 68 69 6c |tNode::A|doptChil| |000009e0| 64 41 72 67 75 6d 65 6e | 74 28 20 43 41 72 67 75 |dArgumen|t( CArgu| |000009f0| 6d 65 6e 74 4e 6f 64 65 | 2a 20 61 64 6f 70 74 65 |mentNode|* adopte| |00000a00| 64 41 72 67 20 29 0a 7b | 0a 09 0a 09 69 6e 74 20 |dArg ).{|....int | |00000a10| 72 65 73 75 6c 74 20 3d | 20 73 74 72 63 6d 70 28 |result =| strcmp(| |00000a20| 20 61 64 6f 70 74 65 64 | 41 72 67 2d 3e 66 41 72 | adopted|Arg->fAr| |00000a30| 67 75 6d 65 6e 74 4e 61 | 6d 65 2c 20 66 41 72 67 |gumentNa|me, fArg| |00000a40| 75 6d 65 6e 74 4e 61 6d | 65 20 29 3b 0a 09 69 66 |umentNam|e );..if| |00000a50| 20 28 20 72 65 73 75 6c | 74 20 3d 3d 20 30 20 29 | ( resul|t == 0 )| |00000a60| 20 7b 0a 09 09 64 65 6c | 65 74 65 20 61 64 6f 70 | {...del|ete adop| |00000a70| 74 65 64 41 72 67 3b 09 | 09 09 09 09 2f 2f 20 54 |tedArg;.|....// T| |00000a80| 72 69 65 64 20 74 6f 20 | 61 64 6f 70 74 20 61 6e |ried to |adopt an| |00000a90| 20 61 72 67 75 6d 65 6e | 74 20 77 69 74 68 20 74 | argumen|t with t| |00000aa0| 68 65 0a 09 09 09 09 09 | 09 09 09 09 09 09 2f 2f |he......|......//| |00000ab0| 20 73 61 6d 65 20 6e 61 | 6d 65 20 61 73 20 74 68 | same na|me as th| |00000ac0| 69 73 20 6f 6e 65 2e 20 | 4b 69 6c 6c 20 69 74 2e |is one. |Kill it.| |00000ad0| 0a 09 7d 0a 09 65 6c 73 | 65 20 69 66 28 20 72 65 |..}..els|e if( re| |00000ae0| 73 75 6c 74 20 3c 20 30 | 20 29 20 7b 0a 09 09 69 |sult < 0| ) {...i| |00000af0| 66 20 28 20 66 4c 65 73 | 73 65 72 43 68 69 6c 64 |f ( fLes|serChild| |00000b00| 20 29 20 7b 0a 09 09 09 | 66 4c 65 73 73 65 72 43 | ) {....|fLesserC| |00000b10| 68 69 6c 64 2d 3e 41 64 | 6f 70 74 43 68 69 6c 64 |hild->Ad|optChild| |00000b20| 41 72 67 75 6d 65 6e 74 | 28 20 61 64 6f 70 74 65 |Argument|( adopte| |00000b30| 64 41 72 67 20 29 3b 0a | 09 09 7d 0a 09 09 65 6c |dArg );.|..}...el| |00000b40| 73 65 20 7b 0a 09 09 09 | 66 4c 65 73 73 65 72 43 |se {....|fLesserC| |00000b50| 68 69 6c 64 20 3d 20 61 | 64 6f 70 74 65 64 41 72 |hild = a|doptedAr| |00000b60| 67 3b 0a 09 09 7d 0a 09 | 7d 0a 09 65 6c 73 65 20 |g;...}..|}..else | |00000b70| 69 66 28 20 72 65 73 75 | 6c 74 20 3e 20 30 20 29 |if( resu|lt > 0 )| |00000b80| 20 7b 0a 09 09 69 66 28 | 20 66 47 72 65 61 74 65 | {...if(| fGreate| |00000b90| 72 43 68 69 6c 64 20 29 | 20 7b 0a 09 09 09 66 47 |rChild )| {....fG| |00000ba0| 72 65 61 74 65 72 43 68 | 69 6c 64 2d 3e 41 64 6f |reaterCh|ild->Ado| |00000bb0| 70 74 43 68 69 6c 64 41 | 72 67 75 6d 65 6e 74 28 |ptChildA|rgument(| |00000bc0| 20 61 64 6f 70 74 65 64 | 41 72 67 20 29 3b 0a 09 | adopted|Arg );..| |00000bd0| 09 7d 0a 09 09 65 6c 73 | 65 20 7b 0a 09 09 09 66 |.}...els|e {....f| |00000be0| 47 72 65 61 74 65 72 43 | 68 69 6c 64 20 3d 20 61 |GreaterC|hild = a| |00000bf0| 64 6f 70 74 65 64 41 72 | 67 3b 0a 09 09 7d 0a 09 |doptedAr|g;...}..| |00000c00| 7d 0a 7d 0a 0a 2f 2f 3d | 3d 3d 3d 3d 3d 3d 3d 3d |}.}..//=|========| |00000c10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000c20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000c30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000c40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0a 2f 2f |========|=====.//| |00000c50| 0a 2f 2f 09 09 4e 6f 72 | 6d 61 6c 69 7a 65 53 74 |.//..Nor|malizeSt| |00000c60| 72 69 6e 67 0a 2f 2f 0a | 2f 2f 3d 3d 3d 3d 3d 3d |ring.//.|//======| |00000c70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000c80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000c90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000ca0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000cb0| 0a 76 6f 69 64 0a 4e 6f | 72 6d 61 6c 69 7a 65 53 |.void.No|rmalizeS| |00000cc0| 74 72 69 6e 67 28 20 63 | 68 61 72 2a 20 74 68 65 |tring( c|har* the| |00000cd0| 53 74 72 69 6e 67 20 29 | 0a 7b 0a 09 69 6e 74 20 |String )|.{..int | |00000ce0| 73 74 72 69 6e 67 49 6e | 64 65 78 20 3d 20 30 3b |stringIn|dex = 0;| |00000cf0| 0a 09 63 68 61 72 20 63 | 75 72 43 68 61 72 20 3d |..char c|urChar =| |00000d00| 20 74 68 65 53 74 72 69 | 6e 67 5b 73 74 72 69 6e | theStri|ng[strin| |00000d10| 67 49 6e 64 65 78 5d 3b | 0a 09 0a 09 77 68 69 6c |gIndex];|....whil| |00000d20| 65 28 20 63 75 72 43 68 | 61 72 20 21 3d 20 27 5c |e( curCh|ar != '\| |00000d30| 30 27 20 29 20 7b 0a 09 | 09 69 66 28 20 28 63 75 |0' ) {..|.if( (cu| |00000d40| 72 43 68 61 72 3e 3d 27 | 41 27 29 20 26 26 20 28 |rChar>='|A') && (| |00000d50| 63 75 72 43 68 61 72 3c | 3d 27 5a 27 29 20 29 20 |curChar<|='Z') ) | |00000d60| 7b 0a 09 09 09 74 68 65 | 53 74 72 69 6e 67 5b 73 |{....the|String[s| |00000d70| 74 72 69 6e 67 49 6e 64 | 65 78 5d 20 3d 20 63 75 |tringInd|ex] = cu| |00000d80| 72 43 68 61 72 20 2d 20 | 28 27 41 27 2d 27 61 27 |rChar - |('A'-'a'| |00000d90| 29 3b 0a 09 09 7d 0a 09 | 09 73 74 72 69 6e 67 49 |);...}..|.stringI| |00000da0| 6e 64 65 78 2b 2b 3b 0a | 09 09 63 75 72 43 68 61 |ndex++;.|..curCha| |00000db0| 72 20 3d 20 74 68 65 53 | 74 72 69 6e 67 5b 73 74 |r = theS|tring[st| |00000dc0| 72 69 6e 67 49 6e 64 65 | 78 5d 3b 0a 09 7d 0a 7d |ringInde|x];..}.}| |00000dd0| 0a 0a 2f 2f 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |..//====|========| |00000de0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000df0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000e00| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000e10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 2f 2f 0a 2f 2f |========|==.//.//| |00000e20| 09 09 43 50 6c 75 67 69 | 6e 41 72 67 75 6d 65 6e |..CPlugi|nArgumen| |00000e30| 74 73 3a 3a 43 50 6c 75 | 67 69 6e 41 72 67 75 6d |ts::CPlu|ginArgum| |00000e40| 65 6e 74 73 0a 2f 2f 0a | 2f 2f 3d 3d 3d 3d 3d 3d |ents.//.|//======| |00000e50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000e60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000e70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000e80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00000e90| 0a 0a 43 50 6c 75 67 69 | 6e 41 72 67 75 6d 65 6e |..CPlugi|nArgumen| |00000ea0| 74 73 3a 3a 43 50 6c 75 | 67 69 6e 41 72 67 75 6d |ts::CPlu|ginArgum| |00000eb0| 65 6e 74 73 28 20 73 68 | 6f 72 74 20 61 72 67 63 |ents( sh|ort argc| |00000ec0| 2c 20 63 6f 6e 73 74 20 | 63 68 61 72 2a 20 61 72 |, const |char* ar| |00000ed0| 67 6e 5b 5d 2c 20 63 6f | 6e 73 74 20 63 68 61 72 |gn[], co|nst char| |00000ee0| 2a 20 61 72 67 76 5b 5d | 20 29 0a 7b 0a 09 43 41 |* argv[]| ).{..CA| |00000ef0| 72 67 75 6d 65 6e 74 4e | 6f 64 65 2a 20 6e 65 77 |rgumentN|ode* new| |00000f00| 41 72 67 3b 0a 09 0a 09 | 66 6f 72 28 20 69 6e 74 |Arg;....|for( int| |00000f10| 20 69 6e 64 65 78 20 3d | 20 30 3b 20 69 6e 64 65 | index =| 0; inde| |00000f20| 78 20 3c 20 61 72 67 63 | 3b 20 69 6e 64 65 78 2b |x < argc|; index+| |00000f30| 2b 20 29 20 7b 0a 09 09 | 63 68 61 72 2a 20 6e 65 |+ ) {...|char* ne| |00000f40| 77 4e 61 6d 65 20 3d 20 | 28 63 68 61 72 2a 29 20 |wName = |(char*) | |00000f50| 4e 50 4e 5f 4d 65 6d 41 | 6c 6c 6f 63 28 20 73 74 |NPN_MemA|lloc( st| |00000f60| 72 6c 65 6e 28 20 61 72 | 67 6e 5b 69 6e 64 65 78 |rlen( ar|gn[index| |00000f70| 5d 20 29 20 2b 31 20 29 | 3b 0a 09 09 63 68 61 72 |] ) +1 )|;...char| |00000f80| 2a 20 6e 65 77 56 61 6c | 75 65 20 3d 20 28 63 68 |* newVal|ue = (ch| |00000f90| 61 72 2a 29 20 4e 50 4e | 5f 4d 65 6d 41 6c 6c 6f |ar*) NPN|_MemAllo| |00000fa0| 63 28 20 73 74 72 6c 65 | 6e 28 20 61 72 67 76 5b |c( strle|n( argv[| |00000fb0| 69 6e 64 65 78 5d 20 29 | 20 2b 31 20 29 3b 0a 09 |index] )| +1 );..| |00000fc0| 09 0a 09 09 73 74 72 63 | 70 79 28 20 6e 65 77 4e |....strc|py( newN| |00000fd0| 61 6d 65 2c 20 61 72 67 | 6e 5b 69 6e 64 65 78 5d |ame, arg|n[index]| |00000fe0| 20 29 3b 0a 09 09 73 74 | 72 63 70 79 28 20 6e 65 | );...st|rcpy( ne| |00000ff0| 77 56 61 6c 75 65 2c 20 | 61 72 67 76 5b 69 6e 64 |wValue, |argv[ind| |00001000| 65 78 5d 20 29 3b 0a 09 | 09 0a 09 09 4e 6f 72 6d |ex] );..|....Norm| |00001010| 61 6c 69 7a 65 53 74 72 | 69 6e 67 28 20 6e 65 77 |alizeStr|ing( new| |00001020| 4e 61 6d 65 20 29 3b 0a | 0a 09 09 6e 65 77 41 72 |Name );.|...newAr| |00001030| 67 20 3d 20 6e 65 77 20 | 43 41 72 67 75 6d 65 6e |g = new |CArgumen| |00001040| 74 4e 6f 64 65 28 20 6e | 65 77 4e 61 6d 65 2c 20 |tNode( n|ewName, | |00001050| 6e 65 77 56 61 6c 75 65 | 20 29 3b 0a 09 09 0a 09 |newValue| );.....| |00001060| 09 69 66 28 20 69 6e 64 | 65 78 20 3d 3d 20 30 20 |.if( ind|ex == 0 | |00001070| 29 20 7b 0a 09 09 09 66 | 54 6f 70 41 72 67 75 6d |) {....f|TopArgum| |00001080| 65 6e 74 20 3d 20 6e 65 | 77 41 72 67 3b 0a 09 09 |ent = ne|wArg;...| |00001090| 7d 0a 09 09 65 6c 73 65 | 20 7b 0a 09 09 09 66 54 |}...else| {....fT| |000010a0| 6f 70 41 72 67 75 6d 65 | 6e 74 2d 3e 41 64 6f 70 |opArgume|nt->Adop| |000010b0| 74 43 68 69 6c 64 41 72 | 67 75 6d 65 6e 74 28 20 |tChildAr|gument( | |000010c0| 6e 65 77 41 72 67 20 29 | 3b 0a 09 09 7d 0a 09 7d |newArg )|;...}..}| |000010d0| 0a 09 0a 09 69 66 28 20 | 66 54 6f 70 41 72 67 75 |....if( |fTopArgu| |000010e0| 6d 65 6e 74 20 3d 3d 20 | 30 20 29 20 7b 0a 09 09 |ment == |0 ) {...| |000010f0| 63 68 61 72 2a 20 65 6d | 70 74 79 4e 61 6d 65 20 |char* em|ptyName | |00001100| 3d 20 28 63 68 61 72 2a | 29 20 4e 50 4e 5f 4d 65 |= (char*|) NPN_Me| |00001110| 6d 41 6c 6c 6f 63 28 20 | 31 20 29 3b 0a 09 09 65 |mAlloc( |1 );...e| |00001120| 6d 70 74 79 4e 61 6d 65 | 5b 30 5d 20 3d 20 27 5c |mptyName|[0] = '\| |00001130| 30 27 3b 0a 09 09 0a 09 | 09 63 68 61 72 2a 20 65 |0';.....|.char* e| |00001140| 6d 70 74 79 56 61 6c 75 | 65 20 3d 20 28 63 68 61 |mptyValu|e = (cha| |00001150| 72 2a 29 20 4e 50 4e 5f | 4d 65 6d 41 6c 6c 6f 63 |r*) NPN_|MemAlloc| |00001160| 28 20 31 20 29 3b 0a 09 | 09 65 6d 70 74 79 56 61 |( 1 );..|.emptyVa| |00001170| 6c 75 65 5b 30 5d 20 3d | 20 27 5c 30 27 3b 0a 09 |lue[0] =| '\0';..| |00001180| 09 0a 09 09 66 54 6f 70 | 41 72 67 75 6d 65 6e 74 |....fTop|Argument| |00001190| 20 3d 20 6e 65 77 20 43 | 41 72 67 75 6d 65 6e 74 | = new C|Argument| |000011a0| 4e 6f 64 65 28 20 65 6d | 70 74 79 4e 61 6d 65 2c |Node( em|ptyName,| |000011b0| 20 65 6d 70 74 79 56 61 | 6c 75 65 20 29 3b 0a 09 | emptyVa|lue );..| |000011c0| 7d 0a 09 66 45 6d 70 74 | 79 53 74 72 69 6e 67 5b |}..fEmpt|yString[| |000011d0| 30 5d 20 3d 20 27 5c 30 | 27 3b 0a 7d 0a 0a 2f 2f |0] = '\0|';.}..//| |000011e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000011f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001200| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001210| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001220| 3d 3d 3d 3d 3d 3d 0a 2f | 2f 0a 2f 2f 09 09 43 50 |======./|/.//..CP| |00001230| 6c 75 67 69 6e 41 72 67 | 75 6d 65 6e 74 73 3a 3a |luginArg|uments::| |00001240| 7e 43 50 6c 75 67 69 6e | 41 72 67 75 6d 65 6e 74 |~CPlugin|Argument| |00001250| 73 0a 2f 2f 0a 2f 2f 3d | 3d 3d 3d 3d 3d 3d 3d 3d |s.//.//=|========| |00001260| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001270| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001280| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001290| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0a 0a 43 |========|=====..C| |000012a0| 50 6c 75 67 69 6e 41 72 | 67 75 6d 65 6e 74 73 3a |PluginAr|guments:| |000012b0| 3a 7e 43 50 6c 75 67 69 | 6e 41 72 67 75 6d 65 6e |:~CPlugi|nArgumen| |000012c0| 74 73 28 29 0a 7b 0a 09 | 64 65 6c 65 74 65 20 66 |ts().{..|delete f| |000012d0| 54 6f 70 41 72 67 75 6d | 65 6e 74 3b 0a 7d 0a 0a |TopArgum|ent;.}..| |000012e0| 2f 2f 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |//======|========| |000012f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001300| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001310| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001320| 3d 3d 3d 3d 3d 3d 3d 3d | 0a 2f 2f 0a 2f 2f 09 09 |========|.//.//..| |00001330| 43 50 6c 75 67 69 6e 41 | 72 67 75 6d 65 6e 74 73 |CPluginA|rguments| |00001340| 3a 3a 41 72 67 75 6d 65 | 6e 74 56 61 6c 75 65 41 |::Argume|ntValueA| |00001350| 73 53 74 72 69 6e 67 0a | 2f 2f 0a 2f 2f 3d 3d 3d |sString.|//.//===| |00001360| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001370| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001390| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000013a0| 3d 3d 3d 0a 0a 63 6f 6e | 73 74 20 63 68 61 72 2a |===..con|st char*| |000013b0| 0a 43 50 6c 75 67 69 6e | 41 72 67 75 6d 65 6e 74 |.CPlugin|Argument| |000013c0| 73 3a 3a 41 72 67 75 6d | 65 6e 74 56 61 6c 75 65 |s::Argum|entValue| |000013d0| 41 73 53 74 72 69 6e 67 | 28 20 63 6f 6e 73 74 20 |AsString|( const | |000013e0| 63 68 61 72 2a 20 61 72 | 67 75 6d 65 6e 74 4e 61 |char* ar|gumentNa| |000013f0| 6d 65 20 29 0a 7b 0a 09 | 63 68 61 72 20 6e 6f 72 |me ).{..|char nor| |00001400| 6d 61 6c 4e 61 6d 65 5b | 32 35 36 5d 3b 09 09 0a |malName[|256];...| |00001410| 09 73 74 72 63 70 79 28 | 20 6e 6f 72 6d 61 6c 4e |.strcpy(| normalN| |00001420| 61 6d 65 2c 20 61 72 67 | 75 6d 65 6e 74 4e 61 6d |ame, arg|umentNam| |00001430| 65 20 29 3b 0a 09 4e 6f | 72 6d 61 6c 69 7a 65 53 |e );..No|rmalizeS| |00001440| 74 72 69 6e 67 28 20 6e | 6f 72 6d 61 6c 4e 61 6d |tring( n|ormalNam| |00001450| 65 20 29 3b 0a 09 0a 09 | 63 6f 6e 73 74 20 43 41 |e );....|const CA| |00001460| 72 67 75 6d 65 6e 74 4e | 6f 64 65 2a 20 66 6f 75 |rgumentN|ode* fou| |00001470| 6e 64 4e 6f 64 65 20 3d | 20 66 54 6f 70 41 72 67 |ndNode =| fTopArg| |00001480| 75 6d 65 6e 74 2d 3e 46 | 69 6e 64 41 72 67 75 6d |ument->F|indArgum| |00001490| 65 6e 74 42 79 4e 61 6d | 65 28 20 6e 6f 72 6d 61 |entByNam|e( norma| |000014a0| 6c 4e 61 6d 65 20 29 3b | 0a 09 69 66 28 20 66 6f |lName );|..if( fo| |000014b0| 75 6e 64 4e 6f 64 65 20 | 29 20 7b 0a 09 09 72 65 |undNode |) {...re| |000014c0| 74 75 72 6e 20 66 6f 75 | 6e 64 4e 6f 64 65 2d 3e |turn fou|ndNode->| |000014d0| 47 65 74 41 72 67 75 6d | 65 6e 74 56 61 6c 75 65 |GetArgum|entValue| |000014e0| 28 29 3b 0a 09 7d 0a 09 | 65 6c 73 65 20 7b 0a 09 |();..}..|else {..| |000014f0| 09 72 65 74 75 72 6e 20 | 66 45 6d 70 74 79 53 74 |.return |fEmptySt| |00001500| 72 69 6e 67 3b 0a 09 7d | 0a 7d 0a 0a 2f 2f 3d 3d |ring;..}|.}..//==| |00001510| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001520| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001530| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001540| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001550| 3d 3d 3d 3d 0a 2f 2f 0a | 2f 2f 09 09 43 50 6c 75 |====.//.|//..CPlu| |00001560| 67 69 6e 41 72 67 75 6d | 65 6e 74 73 3a 3a 41 72 |ginArgum|ents::Ar| |00001570| 67 75 6d 65 6e 74 56 61 | 6c 75 65 41 73 49 6e 74 |gumentVa|lueAsInt| |00001580| 0a 2f 2f 0a 2f 2f 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.//.//==|========| |00001590| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000015a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000015b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000015c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0a 0a 6c 6f |========|====..lo| |000015d0| 6e 67 0a 43 50 6c 75 67 | 69 6e 41 72 67 75 6d 65 |ng.CPlug|inArgume| |000015e0| 6e 74 73 3a 3a 41 72 67 | 75 6d 65 6e 74 56 61 6c |nts::Arg|umentVal| |000015f0| 75 65 41 73 49 6e 74 28 | 20 63 6f 6e 73 74 20 63 |ueAsInt(| const c| |00001600| 68 61 72 2a 20 61 72 67 | 75 6d 65 6e 74 4e 61 6d |har* arg|umentNam| |00001610| 65 2c 20 6c 6f 6e 67 20 | 64 65 66 61 75 6c 74 56 |e, long |defaultV| |00001620| 61 6c 75 65 20 29 0a 7b | 0a 09 6c 6f 6e 67 20 74 |alue ).{|..long t| |00001630| 68 65 4e 75 6d 62 65 72 | 20 3d 20 64 65 66 61 75 |heNumber| = defau| |00001640| 6c 74 56 61 6c 75 65 3b | 0a 09 0a 09 63 68 61 72 |ltValue;|....char| |00001650| 20 6e 6f 72 6d 61 6c 4e | 61 6d 65 5b 32 35 36 5d | normalN|ame[256]| |00001660| 3b 09 09 0a 09 73 74 72 | 63 70 79 28 20 6e 6f 72 |;....str|cpy( nor| |00001670| 6d 61 6c 4e 61 6d 65 2c | 20 61 72 67 75 6d 65 6e |malName,| argumen| |00001680| 74 4e 61 6d 65 20 29 3b | 0a 09 4e 6f 72 6d 61 6c |tName );|..Normal| |00001690| 69 7a 65 53 74 72 69 6e | 67 28 20 6e 6f 72 6d 61 |izeStrin|g( norma| |000016a0| 6c 4e 61 6d 65 20 29 3b | 0a 0a 09 63 6f 6e 73 74 |lName );|...const| |000016b0| 20 43 41 72 67 75 6d 65 | 6e 74 4e 6f 64 65 2a 20 | CArgume|ntNode* | |000016c0| 66 6f 75 6e 64 4e 6f 64 | 65 20 3d 20 66 54 6f 70 |foundNod|e = fTop| |000016d0| 41 72 67 75 6d 65 6e 74 | 2d 3e 46 69 6e 64 41 72 |Argument|->FindAr| |000016e0| 67 75 6d 65 6e 74 42 79 | 4e 61 6d 65 28 20 6e 6f |gumentBy|Name( no| |000016f0| 72 6d 61 6c 4e 61 6d 65 | 20 29 3b 0a 09 69 66 28 |rmalName| );..if(| |00001700| 20 66 6f 75 6e 64 4e 6f | 64 65 20 29 20 7b 0a 09 | foundNo|de ) {..| |00001710| 09 63 6f 6e 73 74 20 63 | 68 61 72 2a 20 76 61 6c |.const c|har* val| |00001720| 75 65 20 3d 20 66 6f 75 | 6e 64 4e 6f 64 65 2d 3e |ue = fou|ndNode->| |00001730| 47 65 74 41 72 67 75 6d | 65 6e 74 56 61 6c 75 65 |GetArgum|entValue| |00001740| 28 29 3b 0a 0a 09 09 74 | 68 65 4e 75 6d 62 65 72 |();....t|heNumber| |00001750| 20 3d 20 61 74 6f 6c 28 | 20 76 61 6c 75 65 20 29 | = atol(| value )| |00001760| 3b 09 09 0a 09 7d 0a 09 | 0a 09 72 65 74 75 72 6e |;....}..|..return| |00001770| 20 74 68 65 4e 75 6d 62 | 65 72 3b 0a 7d 0a 0a 2f | theNumb|er;.}../| |00001780| 2f 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |/=======|========| |00001790| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000017a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000017b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |000017c0| 3d 3d 3d 3d 3d 3d 3d 0a | 2f 2f 0a 2f 2f 09 09 43 |=======.|//.//..C| |000017d0| 50 6c 75 67 69 6e 41 72 | 67 75 6d 65 6e 74 73 3a |PluginAr|guments:| |000017e0| 3a 41 72 67 75 6d 65 6e | 74 56 61 6c 75 65 41 73 |:Argumen|tValueAs| |000017f0| 42 6f 6f 6c 0a 2f 2f 0a | 2f 2f 3d 3d 3d 3d 3d 3d |Bool.//.|//======| |00001800| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001810| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001820| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001830| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========| |00001840| 0a 0a 4e 50 42 6f 6f 6c | 0a 43 50 6c 75 67 69 6e |..NPBool|.CPlugin| |00001850| 41 72 67 75 6d 65 6e 74 | 73 3a 3a 41 72 67 75 6d |Argument|s::Argum| |00001860| 65 6e 74 56 61 6c 75 65 | 41 73 42 6f 6f 6c 28 20 |entValue|AsBool( | |00001870| 63 6f 6e 73 74 20 63 68 | 61 72 2a 20 61 72 67 75 |const ch|ar* argu| |00001880| 6d 65 6e 74 4e 61 6d 65 | 20 2c 20 4e 50 42 6f 6f |mentName| , NPBoo| |00001890| 6c 20 64 65 66 61 75 6c | 74 56 61 6c 75 65 29 0a |l defaul|tValue).| |000018a0| 7b 0a 09 4e 50 42 6f 6f | 6c 20 69 73 54 72 75 65 |{..NPBoo|l isTrue| |000018b0| 20 3d 20 64 65 66 61 75 | 6c 74 56 61 6c 75 65 3b | = defau|ltValue;| |000018c0| 0a 0a 09 63 68 61 72 20 | 6e 6f 72 6d 61 6c 4e 61 |...char |normalNa| |000018d0| 6d 65 5b 32 35 36 5d 3b | 09 09 0a 09 73 74 72 63 |me[256];|....strc| |000018e0| 70 79 28 20 6e 6f 72 6d | 61 6c 4e 61 6d 65 2c 20 |py( norm|alName, | |000018f0| 61 72 67 75 6d 65 6e 74 | 4e 61 6d 65 20 29 3b 0a |argument|Name );.| |00001900| 09 4e 6f 72 6d 61 6c 69 | 7a 65 53 74 72 69 6e 67 |.Normali|zeString| |00001910| 28 20 6e 6f 72 6d 61 6c | 4e 61 6d 65 20 29 3b 0a |( normal|Name );.| |00001920| 0a 09 63 6f 6e 73 74 20 | 43 41 72 67 75 6d 65 6e |..const |CArgumen| |00001930| 74 4e 6f 64 65 2a 20 66 | 6f 75 6e 64 4e 6f 64 65 |tNode* f|oundNode| |00001940| 20 3d 20 66 54 6f 70 41 | 72 67 75 6d 65 6e 74 2d | = fTopA|rgument-| |00001950| 3e 46 69 6e 64 41 72 67 | 75 6d 65 6e 74 42 79 4e |>FindArg|umentByN| |00001960| 61 6d 65 28 20 6e 6f 72 | 6d 61 6c 4e 61 6d 65 20 |ame( nor|malName | |00001970| 29 3b 0a 09 69 66 28 20 | 66 6f 75 6e 64 4e 6f 64 |);..if( |foundNod| |00001980| 65 20 29 20 7b 0a 09 09 | 69 6e 74 20 63 6d 70 52 |e ) {...|int cmpR| |00001990| 65 73 75 6c 74 20 3d 20 | 73 74 72 63 6d 70 28 20 |esult = |strcmp( | |000019a0| 67 54 72 75 65 53 74 72 | 69 6e 67 2c 20 66 6f 75 |gTrueStr|ing, fou| |000019b0| 6e 64 4e 6f 64 65 2d 3e | 47 65 74 41 72 67 75 6d |ndNode->|GetArgum| |000019c0| 65 6e 74 56 61 6c 75 65 | 28 29 20 29 3b 0a 09 09 |entValue|() );...| |000019d0| 69 66 28 20 63 6d 70 52 | 65 73 75 6c 74 20 3d 3d |if( cmpR|esult ==| |000019e0| 20 30 20 29 20 7b 0a 09 | 09 09 69 73 54 72 75 65 | 0 ) {..|..isTrue| |000019f0| 20 3d 20 54 52 55 45 3b | 0a 09 09 7d 0a 09 09 65 | = TRUE;|...}...e| |00001a00| 6c 73 65 0a 09 09 09 69 | 73 54 72 75 65 20 3d 20 |lse....i|sTrue = | |00001a10| 46 41 4c 53 45 3b 0a 09 | 7d 0a 09 0a 09 72 65 74 |FALSE;..|}....ret| |00001a20| 75 72 6e 20 69 73 54 72 | 75 65 3b 0a 7d 0a 00 00 |urn isTr|ue;.}...| |00001a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001a80| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F| |00001a90| 0d 57 61 72 72 65 6e 20 | 48 61 72 72 69 73 70 65 |.Warren |Harrispe| |00001aa0| 2e 63 6f 6d 00 00 00 00 | 00 00 00 00 00 00 00 00 |.com....|........| |00001ab0| 0f 43 50 6c 75 67 69 6e | 41 72 67 73 2e 63 70 70 |.CPlugin|Args.cpp| |00001ac0| 02 00 00 00 50 61 72 74 | 53 49 54 21 00 00 00 00 |....Part|SIT!....| |00001ad0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......| |00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001af0| 00 00 af e8 0b 61 00 00 | 00 00 00 00 01 9a 69 74 |.....a..|......it| |00001b00| 65 73 2c 20 53 6f 6d 65 | 20 57 6f 00 00 00 00 00 |es, Some| Wo.....| |00001b10| 14 d3 7d c4 00 00 00 00 | 00 00 00 00 00 00 00 31 |..}.....|.......1| |00001b20| 22 26 00 00 04 42 00 00 | 04 0d 02 00 31 30 3a 35 |"&...B..|....10:5| |00001b30| 35 20 41 4d 20 2d 30 37 | 30 30 31 34 3a 31 33 20 |5 AM -07|0014:13 | |00001b40| 31 39 39 36 00 00 00 00 | 00 00 00 00 ae 1d 65 a5 |1996....|......e.| |00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001b60| 00 00 00 00 00 00 fe 5c | 00 00 00 00 13 4a 65 61 |.......\|.....Jea| |00001b70| 6e 2d 43 68 61 72 6c 65 | 73 20 4d 6f 75 72 65 79 |n-Charle|s Mourey| |00001b80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....| |00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001ba0| 00 00 00 00 00 00 00 03 | 00 04 00 60 00 d8 02 f3 |........|...`....| |00001bb0| 03 37 00 60 00 d8 02 f3 | 03 37 ae 64 7d 5c 00 00 |.7.`....|.7.d}\..| |00001bc0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 04 |........|........| |00001bd0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T| |00001be0| 00 00 00 46 04 7c 9f e8 | 20 52 00 00 00 1c 00 46 |...F.|..| R.....F| |00001bf0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..| |00001c00| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........| |00001c10| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........| |00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+